/**
 * <p>
 *
 * @Author：Roy
 * @Description：能源数据
 * @Date：Create by 2023-12-05 11:48:22
 */
import request from '@/utils/request'

const energyData = {
  // 分页查询能源数据
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/energyData/queryPage',
      method: 'post',
      data
    })
  },
  queryPageByMeterDevice(data) {
    return request({
      url: '/energy-carbon/ecp-admin/energyData/queryPageByMeterDevice',
      method: 'post',
      data
    })
  },
  // 新增能源数据
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/energyData/add',
      method: 'post',
      data
    })
  },
  // 编辑能源数据
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/energyData/update',
      method: 'post',
      data
    })
  },
  // 删除能源数据
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/energyData/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/energyData/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除能源数据
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/energyData/batchDelete',
      method: 'post',
      data
    })
  },
  // 通过项目Id查询计量设备
  queryMeterDeviceByProjectId(data) {
    return request({
      url: '/energy-carbon/ecp-admin/meterDevice/queryMeterDeviceByProjectId',
      method: 'post',
      data
    })
  },
  // 通过楼栋Id / 楼层Id / 空间Id 获取所属场景
  querySceneInfo(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/querySceneInfo',
      method: 'post',
      data
    })
  }
}

export default energyData
